package com.solomiao.demo.multi.thread;


public class Main {
    public static void main(String[] args) {
        System.out.println("Hello and welcome!");

        ThreadExtendDemo threadExtendDemo = new ThreadExtendDemo();


        ThreadImplementDemo threadImplementDemo = new ThreadImplementDemo();
        Thread thread = new Thread(threadImplementDemo);

        threadExtendDemo.start();
        thread.start();

        threadExtendDemo.run();
        thread.run();
    }
}
